package com.biscuit.page.basicservice.api;

import com.biscuit.common.annotation.RequestWhitelist;
import com.biscuit.common.base.BaseModelResponse;
import com.biscuit.common.base.BaseResponse;
import com.biscuit.common.base.BaseResponseVoid;
import com.biscuit.page.basicservice.api.model.request.common.CommonCheckVerifyCodeAReq;
import com.biscuit.page.basicservice.api.model.request.common.CommonGetVerifyCodeAReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author mazihao
 * @createTime 2024/4/18 14:24
 */
@Api(tags = "公共部分接口")
@RequestMapping("/common")
public interface ICommonRemote {

    @RequestWhitelist
    @ApiOperation(value = "获取验证码")
    @PostMapping("/getVerifyCode")
    BaseResponse<BaseResponseVoid> getVerifyCode(@RequestBody @Validated CommonGetVerifyCodeAReq req);

    @ApiOperation(value = "校验验证码")
    @PostMapping("checkVerifyCode")
    BaseResponse<BaseResponseVoid> checkVerifyCode(@RequestBody @Validated CommonCheckVerifyCodeAReq req);

}
